{include file="$MODULES_DIR/install/templates/layout_top.html"}
{t assignTo=title}Website{/t}
{include file="$MODULES_DIR/install/templates/layout_tabs.html" step=6 title=$title}
<p>{t}You are now ready to set your first website. Pagizer can manage many websites in his back-office.{/t}</p>
<form method="post" action="">
    <table class="form">
        <tr><th colspan="3">{t}Website parameters{/t}</th></tr>
        <tr>
            <td style="width: 200px;">{t}Label{/t}</td>
            <td><input type="text" name="form[label]" {if isset($value.login)}value="{$value.login}"{/if} /> {if isset($error.login)}<img src="{$URL_RELATIVE}/bo/install/media/install/warning.png" alt="" class="icon16" /> {t}Required field{/t}{/if}</td>
        </tr>
        <tr>
            <td>{t}URL{/t}</td>
            <td>http:// <input type="text" name="form[url]" {if isset($value.url)}value="{$value.url}"{/if} /> {if isset($error.url)}<img src="{$URL_RELATIVE}/bo/install/media/install/warning.png" alt="" class="icon16" /> {t}Required field{/t}{/if}</td>
        </tr>
        <tr>
            <td>{t}Templates (static) language{/t}</td>
            <td>
                <select name="form[displayLang]" style="height:22px;">
                    {foreach from=$langs item=lang}
                    <option value="{$lang.iso_639_1|lower}" {if $lang.iso_639_1 == $selectedLang}selected="selected"{/if}>{$lang.label_en} ({if $lang.label_orig && $lang.label_orig != $lang.label_en}{$lang.label_orig} - {/if}{$lang.iso_639_1})</option>
                    {/foreach}
                </select>
            </td>
        </tr>
        <tr>
            <td>{t}Website theme{/t}</td>
            <td>
                {if count($frontThemes) > 0}
                <select name="form[frontTheme]" style="height:22px;">
                    {foreach from=$frontThemes item=frontTheme}
                    <option value="{$frontTheme}">{$frontTheme}</option>
                    {/foreach}
                </select>
                {else}
                    <img src="{$URL_RELATIVE}/bo/install/media/install/warning.png" alt="" class="icon16" /> {t}No theme installed, please install a new one !{/t}
                {/if}
            </td>
        </tr>
    </table>
    {if isset($errors) && count($errors) > 0}
    <p class="errorDetail">
        {if isset($errors.required)}
            {t}All fields are required, please fill in all fields.{/t}
        {/if}
    </p>
    {/if}
    <div class="centeredButton"><button class="bigGreenButton" type="submit">{t}Continue{/t} <img src="{$URL_RELATIVE}/bo/install/media/next.png" alt="" /></button></div>
</form>
{include file="$MODULES_DIR/install/templates/layout_bottom.html"}